package com.singleton;

public class Main {

	public static void main(String[] args) {
		test2();
	}

	public static void test1() {
		Singleton sl1 = Singleton.getSingleton();
		Singleton sl2 = Singleton.getSingleton();
		System.out.println(sl1 == sl2);
	}

	public static void test2() {
		Singleton1 sl1 = Singleton1.getSingleton();
		Singleton1 sl2 = Singleton1.getSingleton();
		System.out.println((sl1 == sl2) + "-");
	}
}
